﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Share
{
    [CustomEditor(typeof(PsActionNodeOp))]
    public class PsActionNodeOpEditor : Editor
    {
        // Start is called before the first frame update
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            PsActionNodeOp nodeOp = (PsActionNodeOp)target;
            GUIStyle greenLabelStyle = new GUIStyle(GUI.skin.label)
            {
                fontSize = 20,
                fixedHeight = 24,
                alignment = TextAnchor.MiddleLeft,
                normal = { textColor = Color.green }
            };

            // 显示绿色Label
            EditorGUILayout.LabelField(nodeOp.m_strDesc, greenLabelStyle);
            EditorGUILayout.Space(20);
        }
    }
}
